import { useStore } from '../store/store'
import { useRouter } from 'vue-router'

const store = useStore()
const router = useRouter()

const localData = localStorage.getItem('routerList')
if (localData) {
  store.dynamicMenu(store.routerList)
  store.routerList.forEach((item) => {
    router.addRoute('Home', item)
  })
}



// 刷新后的动态路由添加
export function RefreshRouter() {
  
}
